package com.canyou.system.entity.user;

import com.canyou.system.model.Menu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.ZonedDateTime;
import java.util.List;

/**
 * 用户详情模型
 *
 * @author fy
 * @date 2021/5/20 10:27
 */
@Data
@ApiModel(value = "UserDetailVO", description = "用户详情模型")
public class UserDetailVO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("联系电话")
    private String mobile;

    @ApiModelProperty("部门id")
    private Long deptId;

    @ApiModelProperty("机构id")
    private Long orgId;

    @ApiModelProperty("角色Id集合")
    private List<Long> roleId;

    @ApiModelProperty("状态 0锁定 1有效")
    private Integer status;

    @ApiModelProperty("性别 0未知1男 2女")
    private Integer sex;

    @ApiModelProperty("真实姓名")
    private String realName;

    @ApiModelProperty("生日")
    private ZonedDateTime birthday;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("机构名称")
    private String orgName;

    @ApiModelProperty(value = "乐观锁版本")
    private Long version;

    @ApiModelProperty("用户的权限列表")
    private List<Menu> ownerMenuList;

}
